﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using System.Configuration;

public partial class Generos : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        Session["CadenaDeConexion"] = ConfigurationManager.ConnectionStrings["RFID"].ConnectionString;
    }
    protected void InsertCancelButton_Click(object sender, EventArgs e)
    {
        limpiarFormulario();
    }
    private void limpiarFormulario()
    {
        FormViewGenero.Controls.Clear();
        FormViewGenero.Visible = false;
    }
    protected void LinkButtonAddNew_Click(object sender, EventArgs e)
    {
        FormViewGenero.Visible = true;
    }
    protected void FormViewGenero_ItemInserted(object sender, FormViewInsertedEventArgs e)
    {
        limpiarFormulario();
    }
    protected void GridViewGeneros_SelectedIndexChanged(object sender, EventArgs e)
    {

    }
    protected void ObjectDataSourceGeneros_Deleted(object sender, ObjectDataSourceStatusEventArgs e)
    {
        Labelmensaje.Text = e.OutputParameters["mensaje"].ToString();
    }
}
